import VueRouter from "vue-router";
import Vue from "vue";
import HelloWorld from "./components/HelloWorld";
import Send from "./components/Send";
import Home from "./components/Home";
import Login from "./components/Login";
import Register from "./components/Register";

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    component: Login
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/query',
    component: HelloWorld
  },
  {
    path: '/send',
    component: Send
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/register',
    component: Register
  }
]

const router = new VueRouter({
  routes,
})

export default router;
